/*
 * Review.java
 * Author: Sanjeev Kamboj
 */
package superConference;

/**
 * Review class - Creates a Review object.
 * 
 * @author Sanjeev Kamboj
 * @updated 11/22/2013
 */
public class Review {

	/**
	 * An int that tells what paper the review is linked to.
	 */
	private int my_paper_id;
	

	//private int my_user_id;  might not need
	
	/**
	 * A boolean flag for if the review has been submitted.
	 */
	private boolean is_submitted;
	
	/**
	 * The file name (path) for this review.
	 */
	private String my_file_name;
	
	
	/**
	 * Constructs a Review object.
	 * 
	 * @param paper_id The paper_id of the paper whose review this is for.
	 * @param file_name  A string that gives the path of this review.
	 */
	public Review(final int paper_id, final String file_name) {
		my_paper_id = paper_id;
		is_submitted = false;
		my_file_name = file_name;
	}
	
	/**
	 * Getter method for the paper_id
	 * @return An int for the paper id that this review is for.
	 */
	public int getPaperId() {
		return my_paper_id;
	}		
	
	/**
	 * Sets the submission status to true for the review.
	 */
	public void setSubmission() {
		is_submitted = true;
	}
	
	/**
	 * Getter method for if the review is submitted.
	 * 
	 * @return A boolean for if the review is submitted
	 */
	public boolean isSubmitted() {
		return is_submitted;
	}
	
	/**
	 * A getter method that returns the file path
	 * 
	 * @return A String for where the review is located.
	 */
	public String getFileName() {
		return my_file_name;
	}
	protected void setFileName(final String the_name) {
		my_file_name = the_name;
	}
	
	/**
	 * Returns a string of the paper id it reviews
	 */
	public String toString() {
		return "" + my_paper_id;
		
	}
}
